package com.huike.pmps.service;

import com.huike.pmps.model.dto.common.PageInfo;
import com.huike.pmps.model.entity.CustomerSuccess;
import com.huike.pmps.model.entity.Region;
import com.huike.pmps.model.vo.Result;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * author：张春旺(010101)
 * date: 2021-06-29
 * WeChat:18311488838
 * QQ:347329812
 */
public interface CustomerSuccessService {
    //获取所有客户成功数据
    Result selectAllCustomerSuccess();

    //添加客户成功
    Result insertOne(CustomerSuccess customerSuccess);

    //分页查询成功客户团队
    Result selectByCondition(PageInfo pageInfo, String teamName, String aliasName, String charge);

    //根据ID删除成功客户团队
    Result deleteById(Integer id);

    //更新成功客户团队
    Result updateById(CustomerSuccess customerSuccess);

    //获取成功客户团队下的子团队
    Result selectByParentId(Integer parentId);

    //获取客户成功团队的树
    Result selectByTree();
}
